package com.service.dao.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("hm_coupon")
public class Coupon implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 记录主键
     */
    @TableId
    private Integer id;

    /**
     * 币种ID
     */
    private Integer coinsId;
    /**
     * 币种名称
     */
    private Integer coinsName;

    /**
     * 优惠券面值
     */
    private BigDecimal couponVal;

    /**
     * 是否绑定产品 0-否 1-是
     */
    private Integer isBindProduct;
    /**
     * 绑定产品ID
     */
    private String productId;

    /**
     * 有效时间 单位：天
     */
    private Integer effectiveDay;

    private Date createTime;

    private Date updateTime;
}
